package com.jy.api.dao;

import com.jy.api.domain.SetMeal;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by xiaohua on 2019/3/1.
 */
public interface SetMealDao  extends CrudRepository<SetMeal,Integer>{

    List<SetMeal> findByStoreIdAndEnabled(String storeId,boolean enabled);



    List<SetMeal> findByStoreIdAndTypeIdAndEnabled(String storeId,String typeId,boolean enabled);

    List<SetMeal> findByTypeIdAndEnabled(String typeId,boolean enabled);

    List<SetMeal> findByIdIn(List<Integer> integers);


}
